Skip to main content

Pooling Manager

Pooling Manager

Constructor

Function NameParameter(s)Description
constructorref self: ContractState, owner: ContractAddressInitializes the contract with the given owner address. Sets up initial access control roles.

Get methods

Method NameParameter(s)Return TypeDescription
factoryself: @TContractStateContractAddressReturns the factory address.
fees_recipientself: @TContractStateContractAddressReturns the fees recipient address.
l1_strategy_to_token_managerself: @TContractState, l1_strategy: EthAddressContractAddressReturns the token manager address for a given L1 strategy.
underlying_to_bridgeself: @TContractState, underlying: ContractAddressContractAddressReturns the bridge address for a given underlying asset.
l2_bridge_to_l1_bridgeself: @TContractState, bridge: ContractAddressfelt252Returns the L1 bridge identifier for a given L2 bridge.
l1_pooling_managerself: @TContractStateEthAddressReturns the L1 pooling manager address.
is_initialisedself: @TContractStateboolChecks if the contract is initialised.
hash_l1_dataself: @TContractState, calldata: Span<StrategyReportL1>u256Computes the hash of L1 data.
hash_l2_dataself: @TContractState, new_epoch: u256, bridge_deposit_info: Span<BridgeInteractionInfo>, strategy_report_l2: Span<StrategyReportL2>, bridge_withdrawal_info: Span<BridgeInteractionInfo>u256Computes the hash of L2 data.
l1_report_hashself: @TContractState, general_epoch: u256u256Returns the L1 report hash for a given epoch.
general_epochself: @TContractStateu256Returns the current general epoch.
pending_strategies_to_initializeself: @TContractStateArray<EthAddress>Lists pending strategies to be initialized.

Set Methods

Method NameParameter(s)Description
set_fees_recipientref self: TContractState, new_fees_recipient: ContractAddressSets the new fees recipient address.
set_l1_pooling_managerref self: TContractState, new_l1_pooling_manager: EthAddressSets the new L1 pooling manager address.
set_factoryref self: TContractState, new_factory: ContractAddressSets the new factory address.
set_allowanceref self: TContractState, spender: ContractAddress, token_address: ContractAddress, amount: u256Sets the allowance for a spender on a token.
handle_mass_reportref self: TContractState, calldata: Span<StrategyReportL1>Handles mass reporting of L1 data.
register_strategyref self: TContractState, token_manager_deployed_address: ContractAddress, token_deployed_address: ContractAddress, l1_strategy: EthAddress, underlying: ContractAddress, performance_fees: u256, min_deposit: u256, max_deposit: u256, min_withdrawal: u256, max_withdrawal: u256Registers a new strategy with specified parameters.
delete_all_pending_strategyref self: TContractStateDeletes all pending strategies.
register_underlyingref self: TContractState, underlying: ContractAddress, bridge: ContractAddress, l1_bridge: felt252Registers an underlying asset with its corresponding bridges.